import request from '@u/request'
// 请求课程管理数据
const fectCourse = (params = {}) => {
  return request.get('/CateCourse', {params})
}
// 新增课程
const addCourse = (params = {}) => {
  return request.post('/addCourse', params)
}
// 删除课程
const deltcourse = (params = {}) => {
  return request.delete('/DeleteCourse', { params })
}
// 上架
const grounDing = (params = {}) => {
  return request.post('/grounDing', params)
}
// 下架
const LowCourse = (params = {}) => {
  return request.delete('/LowCourse', { params })
}
// 登录接口
const isLogin = (params = {}) => {
  return request.post('/isLogin', params)
}
// 导出请求的数据
export {
  fectCourse,
  addCourse,
  deltcourse,
  grounDing,
  LowCourse,
  isLogin
}